package com.ocom.xcxapi.service.impl;

import com.ocom.common.constant.CompanyServiceUrl;
import com.ocom.common.resp.Result;
import com.ocom.xcxapi.client.TcpServerClientService;
import com.ocom.xcxapi.service.TcpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;

@Service
public class TcpServiceImpl implements TcpService {


    @Autowired
    private TcpServerClientService tcpServerClientService;
    /**
     * 2.2.远程开门 menjin/open
     * */

    @Override
    public Result MenjinOpen(Long comId, String deviceNo, Long pId) {
        Long companyId = comId;
        String machNo = deviceNo;

        return tcpServerClientService.openDoor(companyId,pId,machNo);
    }
}
